package com.jin.lazytool.entity;

import javafx.scene.layout.Pane;

import java.awt.*;
import java.nio.charset.CharacterCodingException;

public abstract class IEvent extends BaseCondition{

    private long time;

    public void setTime(long time){
        this.time = time;
    };
    public long getTime(){
        return this.time;
    };

    abstract int execute (Robot robot,int index) throws InterruptedException, CharacterCodingException,NoSuchMethodException;

    public int execute1(Robot robot,int index) throws InterruptedException,CharacterCodingException,NoSuchMethodException{
        return execute(robot,index);
    }

    abstract public Pane initDesc();



    abstract void show();



}
